home *** CD-ROM | disk | FTP | other *** search
/ Mastering Computers 3 / Mastering Computers Vol 3.iso / Win95 / Fun&Utils / GLFONT.EXE / README.TXT < prev    next >
Encoding:
Text File  |  1995-06-01  |  1.5 KB  |  28 lines

  1. The wglUseFontOutlines function is new to Windows NT 3.51 and can be used
  2. to draw 3-dimensional characters of TrueType fonts. These characters can
  3. be rotated, scaled, transformed, and viewed just like any other OpenGL
  4. 3D image. This function is designed to work with TrueType fonts.
  5.  
  6. This sample shows how to use the wglUseFontOutlines function to
  7. create display lists for characters in a TrueType font and how to draw,
  8. scale, and rotate the glyphs in the font by using glCallLists to draw
  9. the characters and other OpenGL functions to rotate and scale them. You
  10. will need the Win32 SDK for Windows NT 3.51 to compile this sample and to
  11. incorporate wglUseFontOutlines in your own applications. You will need 
  12. Windows NT 3.51 to execute it.
  13.  
  14. To specify which TrueType font you want wglUseFontOutlines to create
  15. display lists for, you must first create the desired logical font with
  16. CreateFont or CreateFontIndirect. Then, you must select the HFONT created
  17. into a screen device context (HDC) with SelectObject and send the HDC to 
  18. the wglUseFontOutlines function. Each character is mapped in the "x" and
  19. "y" directions in the display lists and you specify the depth in the 
  20. negative "z" direction in the "extrusion" parameter of wglUseFontOutlines.
  21.  
  22. You can also specify whether you want the 3D glyphs to be created with
  23. line segments or polygons. To instruct wglUseFontOutlines to create the
  24. 3D glyphs with lines segments, specify WGL_FONT_LINES in the "format"
  25. parameter and to have it create them with polygons, you need to specify 
  26. WGL_FONT_POLYGONS.
  27.  
  28.